home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / pipnss / nsIPK11TokenDB.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  128 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIPK11TokenDB.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIPK11TokenDB_h__
  6. #define __gen_nsIPK11TokenDB_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIPK11Token; /* forward declaration */
  18.  
  19. class nsIEnumerator; /* forward declaration */
  20.  
  21. #define NS_PK11TOKENDB_CONTRACTID "@mozilla.org/security/pk11tokendb;1"
  22.  
  23. /* starting interface:    nsIPK11TokenDB */
  24. #define NS_IPK11TOKENDB_IID_STR "4ee28c82-1dd2-11b2-aabf-bb4017abe395"
  25.  
  26. #define NS_IPK11TOKENDB_IID \
  27.   {0x4ee28c82, 0x1dd2, 0x11b2, \
  28.     { 0xaa, 0xbf, 0xbb, 0x40, 0x17, 0xab, 0xe3, 0x95 }}
  29.  
  30. /**
  31.  * The PK11 Token Database provides access to the PK11 modules
  32.  * that are installed, and the tokens that are available.
  33.  * Interfaces: nsIPK11TokenDB
  34.  * Threading: ??
  35.  */
  36. /**
  37.  * nsIPK11TokenDB - Manages PK11 Tokens
  38.  */
  39. class NS_NO_VTABLE nsIPK11TokenDB : public nsISupports {
  40.  public: 
  41.  
  42.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPK11TOKENDB_IID)
  43.  
  44.   /* nsIPK11Token getInternalKeyToken (); */
  45.   NS_IMETHOD GetInternalKeyToken(nsIPK11Token **_retval) = 0;
  46.  
  47.   /* nsIPK11Token findTokenByName (in wstring tokenName); */
  48.   NS_IMETHOD FindTokenByName(const PRUnichar *tokenName, nsIPK11Token **_retval) = 0;
  49.  
  50.   /* nsIEnumerator listTokens (); */
  51.   NS_IMETHOD ListTokens(nsIEnumerator **_retval) = 0;
  52.  
  53. };
  54.  
  55. /* Use this macro when declaring classes that implement this interface. */
  56. #define NS_DECL_NSIPK11TOKENDB \
  57.   NS_IMETHOD GetInternalKeyToken(nsIPK11Token **_retval); \
  58.   NS_IMETHOD FindTokenByName(const PRUnichar *tokenName, nsIPK11Token **_retval); \
  59.   NS_IMETHOD ListTokens(nsIEnumerator **_retval); 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  62. #define NS_FORWARD_NSIPK11TOKENDB(_to) \
  63.   NS_IMETHOD GetInternalKeyToken(nsIPK11Token **_retval) { return _to GetInternalKeyToken(_retval); } \
  64.   NS_IMETHOD FindTokenByName(const PRUnichar *tokenName, nsIPK11Token **_retval) { return _to FindTokenByName(tokenName, _retval); } \
  65.   NS_IMETHOD ListTokens(nsIEnumerator **_retval) { return _to ListTokens(_retval); } 
  66.  
  67. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  68. #define NS_FORWARD_SAFE_NSIPK11TOKENDB(_to) \
  69.   NS_IMETHOD GetInternalKeyToken(nsIPK11Token **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInternalKeyToken(_retval); } \
  70.   NS_IMETHOD FindTokenByName(const PRUnichar *tokenName, nsIPK11Token **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindTokenByName(tokenName, _retval); } \
  71.   NS_IMETHOD ListTokens(nsIEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ListTokens(_retval); } 
  72.  
  73. #if 0
  74. /* Use the code below as a template for the implementation class for this interface. */
  75.  
  76. /* Header file */
  77. class nsPK11TokenDB : public nsIPK11TokenDB
  78. {
  79. public:
  80.   NS_DECL_ISUPPORTS
  81.   NS_DECL_NSIPK11TOKENDB
  82.  
  83.   nsPK11TokenDB();
  84.  
  85. private:
  86.   ~nsPK11TokenDB();
  87.  
  88. protected:
  89.   /* additional members */
  90. };
  91.  
  92. /* Implementation file */
  93. NS_IMPL_ISUPPORTS1(nsPK11TokenDB, nsIPK11TokenDB)
  94.  
  95. nsPK11TokenDB::nsPK11TokenDB()
  96. {
  97.   /* member initializers and constructor code */
  98. }
  99.  
  100. nsPK11TokenDB::~nsPK11TokenDB()
  101. {
  102.   /* destructor code */
  103. }
  104.  
  105. /* nsIPK11Token getInternalKeyToken (); */
  106. NS_IMETHODIMP nsPK11TokenDB::GetInternalKeyToken(nsIPK11Token **_retval)
  107. {
  108.     return NS_ERROR_NOT_IMPLEMENTED;
  109. }
  110.  
  111. /* nsIPK11Token findTokenByName (in wstring tokenName); */
  112. NS_IMETHODIMP nsPK11TokenDB::FindTokenByName(const PRUnichar *tokenName, nsIPK11Token **_retval)
  113. {
  114.     return NS_ERROR_NOT_IMPLEMENTED;
  115. }
  116.  
  117. /* nsIEnumerator listTokens (); */
  118. NS_IMETHODIMP nsPK11TokenDB::ListTokens(nsIEnumerator **_retval)
  119. {
  120.     return NS_ERROR_NOT_IMPLEMENTED;
  121. }
  122.  
  123. /* End of implementation class template. */
  124. #endif
  125.  
  126.  
  127. #endif /* __gen_nsIPK11TokenDB_h__ */
  128.